#!/bin/bash
for i in `awk '{print $1}' b.txt`
do
	echo   $i
	awk   "/$i/{print  $2}" b.txt
	grep -i $i a.txt|awk -F ',' '{print ",",$NF,"\n"}'
	echo  ------------
done
